#include <iostream>
#include <cmath>
using namespace std;

class Point {
public:
    double x;
    double y;
};

void Set(Point points[], int n) {
    for (int i = 0; i < n; i++) {
        cout << "Input x,y:";
        cin >> points[i].x >> points[i].y;
    }
}

void Display(Point points[], int n) {
    for (int i = 0; i < n; i++) {
        cout << "(" << points[i].x << "," << points[i].y << ")" << endl;
    }
}

double Length(Point points[], int n) {
    double length = 0.0;
    for (int i = 1; i < n; i++) {
        length += sqrt(pow(points[i].x - points[i - 1].x, 2) + pow(points[i].y - points[i - 1].y, 2));
    }
    return length;
}

int main(){
    Point points[10];
    Set(points, 10);
    Display(points, 10);
    cout << "Length:" << Length(points, 10) << endl;

    return 0;
}
